import request from '@/util/request'
import store from '@/vuex/store'

// 查询不通过名单
export function getTotalsApi(list) {
    const value = {
        appKey: '',
        appFlag: 2,
        token: store.getters.token,
        versionCode: 0,
        param: JSON.stringify(list)
    }
    return request({
        url: 'notPass/getNotPassList.do',
        method: 'post',
        data: value
    })
}

// 查询不符合名单
export function getHistoryList(list) {
    const value = {
        appKey: '',
        appFlag: 2,
        token: store.getters.token,
        versionCode: 0,
        param: JSON.stringify(list)
    }
    return request({
        url: 'history/getHistoryList',
        method: 'post',
        data: value
    })
}


export function deleteHistoryApi(id) {
    const value = {
        appKey: '',
        appFlag: 2,
        token: store.getters.token,
        versionCode: 0,
        param: id
    }
    return request({
        url: 'history/removeHistory',
        method: 'post',
        data: value
    })
}

